package com.example.lanouhn.firstapp.activity.activity;

import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.lanouhn.firstapp.R;

//忘记密码页面
public class ForgetPasswordActivity extends AppCompatActivity {

    //网址链接
    private TextView tv_url;
    private ImageView iv_back;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_forget_password);

        tv_url = (TextView) findViewById(R.id.forgetPasswordUrl);
        iv_back = (ImageView) findViewById(R.id.iv_back);
        //跳转网页
        tv_url.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent it = new Intent( Intent.ACTION_VIEW );

                it.setData( Uri.parse( "http://www.niaolema.com/shop/index.php?act=login&op=forget_password" ));

                it = Intent.createChooser( it, null );

                startActivity( it );
            }
        });

        iv_back.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
               finish();
            }
        });
    }
}
